project( RealTimePlot )
cmake_minimum_required( VERSION 2.8 )
set ( CMAKE_BUILD_TYPE Debug )
add_definitions ( -Wall )
find_package ( Qt4 REQUIRED )

include ( ${QT_USE_FILE} )
include_directories (
   ${Boost_INCLUDE_DIRS}
	${PROJECT_SOURCE_DIR}/include
	${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
	${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} ${QT_QTPRINTSUPPORT_INCLUDE_DIR}
        ${OpenCV_INCLUDE_DIRS}
	)
set ( RealTimePlot_HDRS
	
	)

set ( RealTimePlot_SRCS
	${PROJECT_SOURCE_DIR}/src/main.cpp
	${PROJECT_SOURCE_DIR}/gui/mainwindow.cpp
	${PROJECT_SOURCE_DIR}/gui/qcustomplot.cpp
	)

set ( RealTimePlot_UIS
	mainwindow.ui
	)
QT4_WRAP_UI(UIS ${RealTimePlot_UIS})

set ( RealTimePlot_MOCS
        ${PROJECT_SOURCE_DIR}/include/mainwindow.h
        ${PROJECT_SOURCE_DIR}/include/qcustomplot.h
	)
QT4_WRAP_CPP(MOCS ${RealTimePlot_MOCS})

add_compile_options(-std=c++11)

find_package( Boost REQUIRED  COMPONENTS  system  )
INCLUDE_DIRECTORIES(
  
    )

add_executable ( RealTimePlot ${RealTimePlot_SRCS} ${UIS} ${RSCS} ${TRS} ${MOCS} )
target_link_libraries ( RealTimePlot ${OpenCV_LIBS}
                                     ${QT_QTCORE_LIBRARY}
                                     ${QT_QTGUI_LIBRARY}
                                     ${QT_QTCORE_LIBRARY}
                                     ${QT_QTGUI_LIBRARY}
                                     ${QT_QTPRINTSUPPORT_LIBRARY}
                                     ${Boost_LIBRARY}
                                      boost_thread   boost_system )
